package com.d0304;

public class LoL2 {
    static class Monster {
        int lv=2;
        int life=lv*1000;
    }
       static class hero{
        int exp=50;
        int lv=8;
        int strength=500;
        public int hit(){
            Monster m= new Monster();
            hero h=new hero();
            int a=m.life-h.strength;
            return a;
        }
        }

    public static void main(String[] args) {
        Monster m=new Monster();
        hero h=new hero();
        LoL2 L=new LoL2();
        int a=h.hit();
        System.out.println(a);
    }
    }




